package com.cn.wanxi.dao;

import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.OrdbyModel;

import java.util.List;

public interface INewsDao {
    List<NewsModel> findAll();

    int deleteById(int newsId);

    NewsModel findById(int newsid);

    int newsUpdate(NewsModel newsModel);

    int newsAdd(NewsModel newsModel);

    List<NewsModel> newsFindAllTh(NewsModel newsModel);


    int getCount(NewsModel newsModel);

    List<NewsModel> newsFindAllsom();

    List<NewsModel> NewsTypeFindAll();

    List<NewsModel> newsNimitFind(NewsModel newsModel);

    List<NewsModel> newstypeFind(NewsModel newsModel);

    int updateNumber(int newsid);

    int getTypeCont(NewsModel newsModel);
}
